<?php
namespace juven\controllers {
    \defined( '_JEXEC' ) or die( 'Restricted access' );
    
    class ctrl_users extends \juven\libs\Controller{
        protected function _init() {}
        
        public function action_index(){
            $this->view->pageTitle = \ucfirst($this->_unPrefixedControllerName);;
            $this->view->render($this->_unPrefixedControllerName);
        }
        
        public function action_add_user(){
            $this->view->pageTitle = "Add User";
            $this->view->render($this->getUnprefixedFunctionName(__FUNCTION__));
        }
        
        public function action_edit_user(){
            $this->view->pageTitle = "Edit User";
            $this->view->render($this->getUnprefixedFunctionName(__FUNCTION__));
        }
        
        public function action_delete_user(){
            echo "todo: deleteUser";
        }
        
    }
}
?>
